<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<title>LayoutPane External Content Test</title>

<script type="text/javascript">
	var djConfig = {isDebug: true};
	//djConfig.debugAtAllCosts = true;
</script>
<script type="text/javascript" src="../../dojo.js"></script>
<script language="JavaScript" type="text/javascript">
	dojo.require("dojo.widget.LayoutPane");
	dojo.require("dojo.widget.RemotePane");
	dojo.require("dojo.widget.BasicPane");
	dojo.require("dojo.widget.ComboBox");
	dojo.require("dojo.widget.Tree");
	dojo.require("dojo.widget.FloatingPane");
	dojo.hostenv.writeIncludes();
</script>

<script>
	function DisplayTreeContent(){
	    this.update = function(message) {
	        var clickedTreeNode =     
	            dojo.widget.getWidgetById(message);

			var docPane = dojo.widget.getWidgetById("docpane");
			docPane.setUrl(clickedTreeNode.title + ".html");
	    };
	}
	var displayer = new DisplayTreeContent();
	var nodeSelectionTopic = dojo.event.topic.getTopic("treeSelected");
	nodeSelectionTopic.subscribe(displayer, "update");
</script>
</head>
<body>

<p>HTML before</p>
<p>HTML before</p>
<p>HTML before</p>

<div dojoType="LayoutPane"
	layoutChildPriority='left-right'
	style="border: 2px solid black; width: 90%; height: 500px; padding: 10px;"
>
	<div dojoType="BasicPane" layoutAlign="top" style="background-color: #b39b86; ">
		top bar
	</div>
	<div dojoType="BasicPane" layoutAlign="bottom" style="background-color: #b39b86;">
		bottom bar
	</div>
	<a dojoType="RemotePane" layoutAlign="left" style="width: 200px; background-color: #acb386;" href="tree.html"></a>
	<div dojoType="BasicPane" layoutAlign="right" style="background-color: #acb386;">
		right
	</div>
	<div dojoType="RemotePane" layoutAlign="client" style="background-color: #f5ffbf; padding: 10px;"
		href="doc0.html" id="docpane">
	</div>
</div>

<div dojoType="FloatingPane" style="width: 300px; height: 300px;"
	title="externally loaded" url="doc0.html"></div>
<p>HTML after</p>
<p>HTML after</p>
<p>HTML after</p>

</body>
</html>
